/**
 * 
 */
package com.lz.ovuola.util.redis.cluster;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 
 *
 */
@Component
@ConfigurationProperties(prefix = "redis.cache")
public class RedisProperties implements InitializingBean {

	private int expireSeconds;
	private String clusterNodes;
	private int commandTimeout;

	public int getExpireSeconds() {
		return expireSeconds;
	}

	public String getClusterNodes() {
		return clusterNodes;
	}

	public int getCommandTimeout() {
		return commandTimeout;
	}

	public void setExpireSeconds(int expireSeconds) {
		this.expireSeconds = expireSeconds;
	}

	public void setClusterNodes(String clusterNodes) {
		this.clusterNodes = clusterNodes;
	}

	public void setCommandTimeout(int commandTimeout) {
		this.commandTimeout = commandTimeout;
	}

	@Override
	public void afterPropertiesSet() throws Exception {
		System.out.println("-------------" + expireSeconds + "-------------"
				+ clusterNodes);
	}

}
